﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace RIDA.Globals
{
       [Serializable]
    public abstract class ModelBase : INotifyPropertyChanged
    {
        #region INotifyPropertyChanged Members
        [field: NonSerialized]       
        public event PropertyChangedEventHandler PropertyChanged;

        #endregion

        protected virtual void OnNotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        
    }
}
